<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<%@ page import="com.scalar.chiptrack.utils.ConfigManager" %>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>

<chiptrack:checkLogon sourcePage="/customerReport.do"/>

<%String chipTracContext = "/" + ConfigManager.getChipTracContext(); try { %>

<HTML>
<HEAD><TITLE>Scalarsoft - ChipTrac</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type="text/css" rel="stylesheet">
<script src="<%=chipTracContext%>/jsp/includes/scripts/functions.js"></script>
<script src="<%=chipTracContext%>/jsp/includes/scripts/validations.js"></script>
<script src="<%=chipTracContext%>/jsp/includes/scripts/quickSearch.js"></script>
</HEAD>
<script language="javascript">
window.onload = init;
function init()
{

    if ( document.customerReportForm.customerId  != null)
    {
        qs_1 = new QuickSearch( document.customerReportForm.customerId, document.customerReportForm.qs1, false);
    }
}

function reset()
{
    document.customerReportForm.reset();
    qs_1.resetQuickSearchCntrl();
}
function submitReport()
{
    document.customerReportForm.action = "<%=chipTracContext%>/customerReport.do?action=customerARReportxls";
    document.customerReportForm.submit();
}


</script>
<BODY bgColor=#ffffff leftMargin=0 topMargin=0 marginheight="0" marginwidth="0" >
<!-- Top Header Start-->
<%@ include file="/jsp/includes/header.jsp" %>
<!-- Top Header End-->
<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
  <TR>
	<TD width='180' valign='top' background='<%=chipTracContext%>/jsp/includes/images/left_red_bg.gif'>
    <!-- Side Navigation start -->
    <%@ include file="/jsp/sales/sales_report_menu.jsp" %>
    <!-- end of the side navigations -->
    </TD>
    <TD bgcolor="#ffffff">
        <IMG height="9" src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width="8"></TD>
        <TD bgcolor="#ffffff"><IMG height=480 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width="2"></TD>
        <TD valign="top" width="100%">
        <IMG height="1" src="<%=chipTracContext%>/jsp/includes/images/clear.gif" width="500" border="0">
        <BR>
        <html:form name="customerReportForm" type="com.scalar.chiptrack.sales.reports.forms.CustomerReportForm" action="/customerReport">
        <TABLE border="0" width="100%" align="center">
            <TR><TD colspan="6" class="NArialW" align="center">Customer AR Report</TD></TR>
            <TR><TD colspan="6" class='NArialL' align="left"><strong><FONT id="message" styleClass="NArialL" color='FF0000'>&nbsp;</FONT></strong></TD></TR>

            <TR>
                <TD colspan="6" align="left">
                  <chiptrack:info styleClass="NArialL" />
                  <chiptrack:errors styleClass="NArialL" />
                  <chiptrack:messages type="info" styleClass="NArialL" />&nbsp;
                </TD>
            </TR>
             <TR>
                    <TD width="10%" class="NArialL">&nbsp;</TD>
                    <TD class="NArialL" width='15%' align='left'>Quick Search:</TD>
                    <td class="NArialL" width='30%'>
                    <input type="text" name="qs1" class="txfield" size='30' onkeyup='quickSearch(qs_1);'/>
                    </td>
                    <TD colspan="3" class="NArialL">&nbsp;</TD>
              </TR>
                    <TR>
                        <TD width="5%" >&nbsp;</TD>
                        <TD width="15%" class="NArialL" valign = 'top'>Customer Name:</TD>
                        <TD width="30%" class="NArialL" valign = 'top'>
                            <html:select property="customerId" name="customerReportForm" styleClass="txfield">
                                <html:option value="-1">All Customers</html:option>
                                <html:options collection="customerList" property="value" labelProperty="label"/>
                            </html:select>
                        </TD>
                        <TD colspan="3" >&nbsp;</TD>
                    </TR>
                    <TR><TD colspan="6"><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=8></TD></TR>
                        <TR>
                            <TD colspan="6" align=center>
                                <a href="javascript:submitReport();"><img border="0" src="<%=chipTracContext%>/jsp/includes/images/submit.gif" width="53" height="17" onmouseover="window.status='Click to Generate Customer AR Report';return true" onmouseout="window.status='';return true" title='Click to Generate Customer AR Report'></a>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <a href="javascript:document.customerReportForm.reset();"><img border="0" src="<%=chipTracContext%>/jsp/includes/images/reset.gif" width="53" height="17" onmouseover="window.status='Click to reset search';return true" onmouseout="window.status='';return true" title="Click here to reset search"></a>
                            </TD>
                        </TR>
                        <TR><TD colspan="6"><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=20></TD></TR>
                   <%-- </TABLE>
                </TD>--%>
        </TABLE>
        </html:form>
      </td>
    </TR>
</TABLE>
<!-- Footer starts here -->
<%@ include file="/jsp/includes/footer.jsp" %>
<!-- footer end here -->
</BODY>
</HTML>
<% } catch(Exception e){e.printStackTrace();} %>
